package com.foreknow.dao;

import com.foreknow.bean.Guestbook;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookDao {
    //添加
    public int add(Guestbook guestbook) throws SQLException;
    //查询,根据id
    public Guestbook query(Integer id) throws SQLException;
    //模糊查询
    public List<Object> mohuquery(String name) throws SQLException;
    //删除
    public int delete(Integer id) throws SQLException;
    //修改
    public int update(Guestbook guestbook) throws SQLException;
    //查询所有
    public List<Object> allquery() throws SQLException;
}
